import { ApiProperty } from '@nestjs/swagger';

import { IsNotEmpty, Matches } from 'class-validator';
export class CreateUserDto {
  @IsNotEmpty({ message: '请输入用户名字' })
  @ApiProperty({ example: 'xp' })
  username: string;
  @IsNotEmpty({ message: '请输入用户名字' })
  @ApiProperty({ example: 18 })
  age: number;
}


